package com.ruoyi.project.api;

import com.ruoyi.common.core.constant.ServiceNameConstants;
import com.ruoyi.common.core.domain.R;
import com.ruoyi.project.api.domain.SysStudent;
import com.ruoyi.project.api.factory.RemoteProjectFallbackFactory;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.Mapping;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.List;

/**
 * 项目服务
 * 
 * @author ruoyi
 */
@FeignClient(contextId = "remoteProjectService", value = ServiceNameConstants.PROJECT_SERVICE, fallbackFactory = RemoteProjectFallbackFactory.class)
@Component
public interface RemoteProjectService
{

    @RequestMapping(value = "/student/apilist")
    public R<List<SysStudent>> queryStudentlist(SysStudent student);
}
